using UnityEngine;
[ExecuteAlways]
public class UpdateEach : MonoBehaviour
{
    public float timer;
    public float delta = 10;
    public QOS[] examples;

    private void OnEnable()
    {
        examples = GetComponentsInChildren<QOS>(true);
    }

    private void Update()
    {
        timer += Time.deltaTime;
        if (timer >= delta)
        {
            timer = 0;
            foreach(var e in examples)
            {
                if (!e.gameObject.activeSelf)
                {
                    //e.column = days;
                    e.update = true;
                    e.gameObject.SetActive(true);
                    e.update = false;
                    break;
                }
            }
        }
    }
}
